package com.go.ssm.web.interceptor;

import org.aspectj.lang.JoinPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogInterceptor {
	private Logger logger = LoggerFactory.getLogger(this.getClass());

	public void doBefore(JoinPoint jp) {
		// Object[] args=jp.getArgs();
		// for (int i = 0; i < args.length; i++) {
		// System.out.println(args[i]);
		// }
		// System.out.println(jp.getSignature().getName());
		// System.out.println("---------权限检测--------------");

		logger.info("[before] {} {}", jp.getSignature().getDeclaringTypeName(),
				jp.getSignature().getName());
	}
}
